Skip to content

#68 Add networkId and its verification, reorder mint transaction params#69

Merged
b3y0urs3lf merged 4 commits into
mainfrom
issue-68
Jun 9, 2026
Merged

#68 Add networkId and its verification, reorder mint transaction params#69
b3y0urs3lf merged 4 commits into
mainfrom
issue-68

Conversation

@martti007

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a formal NetworkId enum and refactors the minting and splitting logic to use a combination of NetworkId and a new TokenSalt to derive TokenId deterministically. It renames getBlockHeight to getLatestBlockNumber across the aggregator client and updates verification rules to ensure network consistency between transactions and trust bases. Additionally, the token split API was refactored to use SplitTokenRequest and SplitToken objects. Feedback was provided regarding the non-deterministic ordering of proofs in the split logic and a redundant collection allocation.

Comment thread src/main/java/org/unicitylabs/sdk/payment/TokenSplit.java
Comment thread src/main/java/org/unicitylabs/sdk/payment/TokenSplit.java Outdated
@martti007 martti007 requested a review from MastaP May 28, 2026 11:50
@b3y0urs3lf b3y0urs3lf merged commit 91f400e into main Jun 9, 2026
1 check passed
@b3y0urs3lf b3y0urs3lf deleted the issue-68 branch June 9, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TGE] [Java] Migrate minting from caller-supplied token ids to networkId + salt

3 participants